#将当前目录下所有的源文件定义成变量SRC_LIST
aux_source_directory(. SRC_LIST)
aux_source_directory(./db DB_LIST)
aux_source_directory(./model MODEL_LIST)
aux_source_directory(./redis REDIS_LIST)

#生成可执行文件指令
add_executable(ChatServer ${SRC_LIST} ${DB_LIST} ${MODEL_LIST} ${REDIS_LIST})
#指定生成时依赖的库文件
target_link_libraries(ChatServer mysqlclient mymuduo hiredis pthread) 